import { PublicMuen } from '../../constraint/index';

const publicMuenTow: PublicMuen = {
    MuenList: [
        {id: '1', title: '电台中心', router: 'station'},
        {id: '2', title: '声音榜', router: 'voice'},
        {id: '3', title: '新晋级客榜', router: 'rankings'},
        {id: '4', title: '热门播客', router: 'hotspot'},
        {id: '5', title: '24小时节目榜', router: 'repertoire'},
    ]
}

const publicMuenOne: PublicMuen = {
    MuenList: [
        {id: '1', title: '个性推荐', router: 'discovr'},
        {id: '2', title: '专属定制', router: 'proper'},
        {id: '3', title: '歌单', router: 'playlist'},
        {id: '4', title: '排行榜', router: 'among'},
        {id: '5', title: '歌手', router: 'singer'},
        {id: '6', title: '最新音乐', router: 'newestmusic'},

    ]
}

export default {
    namespaced: true,
    
    actions: {
        test() {
            console.log('这是hander');
        }
    },
    mutations: {

    },
    getters: {
        isAdmin() {

        } // -> getters['account/isAdmin']
    },

    // 模块内容（module assets）
    state: () => ({
        publicMuenOne,
        publicMuenTow
    }), // 模块内的状态已经是嵌套的了，使用 `namespaced` 属性不会对其产生影响
}

 